<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul>
        <li>我是第1个1i</li>
        <li>我是第2个1i</li>
        <1i>我是第 3个1i</li>
            <1i>我是第4个1i</1i>
            <li>我是第5个1i</li>
    </ul>
    <script>
        var ul = document.querySelector('ul');
        ul.addEventListener('click', function (e) {
            e.target.style.backgroundColor = 'pink';
        });
    </script>
</body>

</html>